package com.cskt.petproject178.controller;

import com.cskt.petproject178.pojo.vo.ProductCategoryLevel1VO;
import com.cskt.petproject178.pojo.vo.ResultVO;
import com.cskt.petproject178.service.ProductCategoryService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 商品分类控制器
 *
 * @author admin
 **/
@RestController
public class ProductCategoryController {
    
    @Resource
    private ProductCategoryService productCategoryService;
    
    @GetMapping(value = "/pms/product/category/list")
    public ResultVO<List<ProductCategoryLevel1VO>> getProductCategory() {
        return ResultVO.OK(productCategoryService.getProductCategory());
    }
}
